package com.fuli.app.dao;

import com.fuli.app.entity.CurriculumCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CurriculumCategoryDao {
    CurriculumCategory get(String categoryId);

    int countByParentId(@Param("parentId") String parentId);

    Integer delete(@Param("id") String id, @Param("updateId") String updateId);

    Integer getMaxSortIndex(String parentId);

    Integer update(CurriculumCategory po);

    List<CurriculumCategory> listByParentId(@Param("parentId") String parentId, @Param("beginIndex") Integer beginIndex,
                                            @Param("pageSize") Integer pageSize);

    Integer batchUpdateSortIndex(@Param("poList") List<CurriculumCategory> poList, @Param("updateId") String updateId);

    List<CurriculumCategory> listAll();

    Integer insert(CurriculumCategory po);
}
